furny.util
Class ModelUtil

java.lang.Object
  extended by furny.util.ModelUtil

public final class ModelUtil
extends java.lang.Object

Utility class for handling JME nodes.

Since:
11.08.2012
Author:
Stephan Dreyer

Constructor Summary
private ModelUtil()
          Instantiation is not allowed.
 
Method Summary
static void center(com.jme3.scene.Node n)
          Centers the JME node to the world.
static com.jme3.math.Vector3f getExtents(com.jme3.scene.Node n)
          Gets the dimensions/extents of the JME node.
static com.jme3.math.Vector3f getHalfExtents(com.jme3.scene.Node n)
          Gets the half dimensions/extents of the JME node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelUtil

private ModelUtil()
Instantiation is not allowed.

Since:
11.08.2012
Method Detail

center

public static void center(com.jme3.scene.Node n)
Centers the JME node to the world.

Parameters:
n - Node to center.
Since:
11.08.2012

getExtents

public static com.jme3.math.Vector3f getExtents(com.jme3.scene.Node n)
Gets the dimensions/extents of the JME node.

Parameters:
n - The node.
Returns:
The vector containing x-,y- and z-extents.
Since:
11.08.2012

getHalfExtents

public static com.jme3.math.Vector3f getHalfExtents(com.jme3.scene.Node n)
Gets the half dimensions/extents of the JME node.

Parameters:
n - The node.
Returns:
The vector containing half x-,y- and z-extents.
Since:
11.08.2012